home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
dskut
/
fill402.zip
/
FILL.DOC
< prev
next >
Wrap
Text File
|
1994-02-06
|
15KB
|
299 lines
FILL.DOC
02/06/94
The FILL program is designed to help you move or copy files off a hard disk
while reducing the amount of wasted space on the destination disks. Internally,
it does this by sorting the file names so the largest files are moved/copied
first. It then moves or copies whatever files can fit on the floppy, skipping
any that can't. Features:
* Can either move or copy the files to the resulting location
* Can go onto to multiple diskettes as desired, beeping if desired when
the next disk is expected
* Can move the files in file name order or any of standard ordering
categories
* Can be used to split up files which are too big to fit on a single disk
* Can create a status/transaction file for you, showing what was copied/moved
* Can label the output diskette, providing some patterns like sequence numbers
and dates which it will fill in for you
* Some times useful for network transfers where standard MOVE command doesn't
always work
* Can review and delete if desired any files which are already in the
output destination (e.g. already on the output diskette)
* Can reformat the whole disk if files are going to drive A or B
Some of the default values for this routine can be set using the CONFIGWS.EXE
program contained in FILLymm.ZIP.
Limits:
* Routine can only process the first 500 files in a given subdirectory. It
ignores the rest of them.
* Routine can only review for deletion the first 200 files in the output
location.
* Routine does not provide any cool write-error recovery. If it finds a DOS
error on the output drive, it just stops.
* Routine will not format the output diskette for you.
* Routine's continual testing for new diskette (/CONTINUAL) only works if the
diskette was formatted using DOS 4.0 or later. That's the version that
puts volume sequence numbers on the diskettes. One way to insure this if
you're using the newer versions of DOS is to do a quick-reformat of your
floppies whenever you'd normally do a DEL A:*.*. I do this with a QDR.BAT
command that has the following:
FORMAT %1 /Q /U /V:Bruce
I then say "QDR A:" or "QDR B:". It invokes an unconditional quick format
and applies a volume label on the diskette (to avoid the prompt). If the
diskette does not have a sequence number, DOS tells you it can't be
quick-formatted and asks if it can do the full format instead.
Syntax:
FILL [ source-filespec ] [ dest-drive: | dest-drive:\path\ ]
[ /MOVE | /COPY ] [ /PROMPT | /-PROMPT ]
[ /OVERWRITE | /-OVERWRITE | /OVERSKIP | /OVERASK ]
[ /Ox | /O-x ] [ /Xfilespec ]... [ /WIPE | /-WIPE ] [ /MULTI | /SINGLE ]
[ /SPLIT ] [ /LABEL=label [ /START=n ] ] [ /Fstatfile [ /S+ | /S- | S* ]
[ /CONTINUAL ] [ /BEEP | /-BEEP ] [ /Q ] [ /? ]
where:
"source-filespec" is the file specification for what you want to move. You can
specify a drive and path and file wildcards if necessary (e.g. "C:\TEMP\*.BAT")
but otherwise it defaults to your default drive and directory and takes "*.*".
Note that the program cannot handle any request for more than 500 files at a
time.
"dest-drive:" or dest-drive:\path" tells the routine what drive or path to move
the files to. In many cases, the routine doesn't really care whether the source
specification precedes or follows the destination specification. If either
parameter ends with a colon (e.g. "A:") or slash (e.g. "C:\QB45\"), the
routine will presume that's the destination specification and the other one must
be the source specification. If either parameter contains a wildcard, the
routine will presume that's the source specification and the other one must be
the destination specification. So "FILL A: *.BAS" is the same as "FILL *.BAS
A:". The default destination drive (dest-drive:, not dest-drive:\path) can be
set by using the CONFIGWS.EXE program. The original default is "A:".
"/MOVE" says to move the files instead of copying them. The default value for
this option can be set by using the CONFIGWS.EXE program. The original default
is "/MOVE".
"/COPY" says to copy the files instead of moving them. The default value for
this option can be set by using the CONFIGWS.EXE program. The original default
is "/MOVE".
"/PROMPT" says to prompt for each filename before moving it. The default value
for this option can be set by using the CONFIGWS.EXE program. The original
default is "/-PROMPT".
"/-PROMPT" says to not prompt for each file. The default value for this option
can be set by using the CONFIGWS.EXE program. The original default is
"/-PROMPT".
"/OVERWRITE" says to overwrite same-named files in the destination path. The
default value for this option can be set by using the CONFIGWS.EXE program. The
original default is "/OVERSKIP".
"/-OVERWRITE" says to abort if any same-named files are found in the destination
path. The default value for this option can be set by using the CONFIGWS.EXE
program. The original default is "/OVERSKIP".
"/OVERSKIP" says to skip any file that already exists in the destination path.
The counts aren't accurate in this case. The default value for this option can
be set by using the CONFIGWS.EXE program. The original default is "/OVERSKIP".
"/OVERASK" says to prompt if same-named files exist in the destination
directory. The default value for this option can be set by using the
CONFIGWS.EXE program. The original default is "/OVERSKIP".
"/Ox" and "/O-x" allow you to specify the copy order for the files. "x" can be
one of the following:
N = file name
D = file date and time
S = file size
If you precede the "x" with a dash ("-"), the sort will be done in reverse
order. Note that this parameter does not determine which files are copied; it
only determines what order they are actually copied. Since the order that the
file tends to show up in a DOS DIR listing is based on creation order, this
sequence may be relevant to how the files ultimately show up. The default value
for this option can be set by using the CONFIGWS.EXE program. The original
default is "/ON".
"/Xfilespec" says to exclude certain filespecs from being moved. You can
specify up to 10 exclusion parameters but each must have their own /Xfilespec
statement. For example, to move all files except those with a BAS extension,
you could say "FILL /X*.BAS".
"/WIPE" says that if the destination drive has files on it, prompt the user
for whether these files should be deleted or not. Six sub-options show up in
this case:
Do *NOT* delete the x file(s) Don't delete anything
List file(s) List the files but don't delete any of
them. The user will be reprompted for
these four options after pressing a key.
Select file(s) to delete List the files and allow the user to
select any to be deleted. Keys:
* Cursor keys -- move among list
* Space -- select that file
* Ctrl-Enter -- select all files
* Ctrl-bs -- deselect all files
* Enter -- process those tagged
* Esc -- skip processing
After pressing Enter, the selected files
will be deleted. You will then get the
standard four prompts again.
Delete all file(s) Delete all files in the specified
directory. Subdirectory files will not
be deleted.
Reformat the diskette If your output drive is either A or B,
the program will shell to DOS and execute